<h1>Listing articles</h1>

<table>
  <tr>
    <th>Issue</th>
    <th>Box</th>
    <th>Name</th>
    <th>Start page</th>
    <th>End page</th>
    <th>Number</th>
  </tr>

<% for article in @articles %>
  <tr>
    <td><%=h article.issue_id %></td>
    <td><%=h article.box_id %></td>
    <td><%=h article.name %></td>
    <td><%=h article.start_page %></td>
    <td><%=h article.end_page %></td>
    <td><%=h article.number %></td>
    <td><%= link_to 'Show', article %></td>
    <td><%= link_to 'Edit', edit_article_path(article) %></td>
    <td><%= link_to 'Destroy', article, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New article', new_article_path %>
